<?php
namespace App\Controller;

use App\Services\TestService;
use Hyperf\HttpServer\Annotation\AutoController;

#[AutoController]
class TestController extends AbstractController
{
    private TestService $testService;

    public function __construct(TestService $testService)
    {
        $this->testService = $testService;
    }

    // test/index
    public function index()
    {
        return $this->testService->getUsers();
    }
}